﻿@* Ui层项目 - webpack配置文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    Model.Output.FileNameNoExtension = "webpack.config";
    Model.Output.Extension = ".js";
    Model.Output.RelativeRootPath = $"src/{service.GetUiProjectName()}/ClientApp";
}
const { shareAll, withModuleFederationPlugin } = require('@@angular-architects/module-federation/webpack');

module.exports = withModuleFederationPlugin({
    name: '@service.GetClientAppName()',
    exposes: {
        './Module': './src/app/routes/@(service.GetClientModuleFolderName())/@(service.GetClientModuleFileName()).ts'
    },
    shared: {
        ...shareAll({ singleton: true, strictVersion: false, requiredVersion: 'auto' })
    }
});
